package com.yjj.image.util.web;

import com.yjj.image.util.service.ImageConvertService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 *
 * @author yangjiajia
 * @createdAt 2022/8/23 14:11
 */
@RestController
public class ImageController {

    @Autowired
    private ImageConvertService imageConvertService;

    @GetMapping("/test")
    public String test() {
        return "success";
    }

    @GetMapping("/send")
    public String send(@RequestParam("msg") String msg) {
        imageConvertService.sendMsg(msg);
        return "success";
    }
}
